
package com.trydofor.id.doer;

import com.trydofor.id.byta.Packet;

/**
 * @author : Shi Rongjiu (www.trydofor.com)
 */
public interface PacketDoer {
    
    /**
     * whether can response the request
     * 
     * @param request the request
     * @return true if can
     */
    boolean accept(Packet request);
    
    /**
     * response the request
     * 
     * @param request the request
     * @return the response,null if can not response
     */
    Packet response(Packet request);
}
